<meta charset="UTF-8" />
<body>
  <div class="wrap">
    <div class="box" src="https://fengjunjie.online/web-window11/vue3">
      <div class="title" >windowVue</div>
      <div>模仿window10，包含前后端。 包含技术 vue3,vite,PHP laravel。</div>
    </div>
    <div class="box" src="https://www.bilibili.com/video/BV1fi4y1g7yN/?spm_id_from=333.999.0.0">
      <div class="title">断魂剑士</div>
      <div>类梦幻西游网络回合制游戏，前端pixi.js，后端Node.js</div>
    </div>
    <div class="box" src="https://www.bilibili.com/video/BV1Kv421C7kE/?spm_id_from=333.999.0.0">
      <div class="title" >元宇宙</div>
      <div>孪生城市技术，使用UE5开发，像素流和Chromium嵌入式框架作为UI系统。</div>
    </div>
  </div>
  
</body>
<style>
  *{ margin: 0px; padding: 0px;}
  body{ background-color: #fafafa; overflow: hidden;}
  .wrap{ display:flex; align-items:center ; justify-content:center; position:absolute; width: 100%; height: 100%;}
  .box{  flex: 1;   background: #fff; margin: 0.1rem; color: #81848f; font-size: 0.12rem; padding: .3rem;  cursor: pointer;}

  .box .title{ font-size: 0.22rem; padding-bottom: 0.1rem; font-weight: bold; color: #515769;}
</style>
<script>

  function refreshRem() {
  let height = document.documentElement.clientHeight;
		var rem = (height/420*100)+ 'px'; 
    document.querySelector('html').style.fontSize = rem
	}
  refreshRem();
  window.addEventListener( 'resize', refreshRem);

  var box = document.querySelectorAll('.box')
  box.forEach((item)=>{
    console.log(item);
    item.onclick = function (){
      window.open(item.getAttribute('src'))  
    }
  })
</script>

